// utils/api.js

const api = {
  // 用户模块
  login: '/login',
  userInfo: '/api/user/profile',
  updateProfile: '/api/user/update',
  userUsageCount:'/api/user/get_usage_count',
  shareBind:'/api/share/bind',
  // 商品模块
  goodsList: '/goods/list',
  goodsDetail: '/goods/detail',

  // 订单模块
  createOrder: '/order/create',
  orderList: '/order/list',
  orderDetail: '/order/detail',

  // 上传文件
  uploadFile: '/file/upload',

  // 系统url
  notices:'/api/notices',
  banners:'/api/banners',
  shareCount:'/api/share/count',
  userTop:'/api/getuserTop',


  //搜索题目
  search:'/search',
  feedback:'/api/feedback',

  // 文章相关
  articles:'/api/articles',

  // 答题相关
  get_questions:'/api/exam/get_questions',


  // 激活码相关
  activate_code:'/api/user/activate_code',
  
  // 代理激活码相关接口
  admin_codes: '/api/admin/mp/activation-codes',
  admin_generate_codes: '/api/admin/mp/activation-codes/generate',
  admin_delete_code: '/api/admin/mp/activation-codes/delete/',
  checkAdminPermission: '/api/admin/mp/check-permission',
  
  // 代理商仪表盘相关API
  agent_dashboard_stats: '/api/admin/mp/dashboard/stats',
  agent_team_members: '/api/admin/mp/team/members',
  agent_sales_stats: '/api/admin/mp/sales/stats',
  agent_sales_detail: '/api/admin/mp/sales/detail',

  // 
  plans:'/api/plans',
  createOrder:'/api/order/create',
  queryOrderStatus:'/api/order/query',

  popupActive:'/api/popup/active',
  // 代理管理相关接口
  agent_team_hierarchy: '/api/admin/mp/team/hierarchy',
  agent_detail: '/api/admin/mp/team/agent_detail',
  agent_sales_records: '/api/admin/mp/team/agent_sales_records',
  update_agent_commission: '/api/admin/mp/team/update_commission',
  send_agent_message: '/api/admin/mp/team/send_message',


  // 广告奖励
  videoAd:'/api/admin/mp/video_ad'

};

module.exports = api;
